package com.sample.systemui.viewmodel;

import androidx.lifecycle.ViewModel;

public class SlidingDrawerViewModel extends ViewModel {

    private  static SlidingDrawerViewModel sInstance = null;

    private static SlidingDrawerLiveData mSlidingDrawerLiveData = null;

    public SlidingDrawerViewModel() {
        sInstance = this;
    }

    public static synchronized SlidingDrawerViewModel getInstance() {
        return sInstance;
    }

    public static synchronized  SlidingDrawerLiveData getViewLiveData() {
        if(null == mSlidingDrawerLiveData) {
            mSlidingDrawerLiveData = new SlidingDrawerLiveData();
        }
        return mSlidingDrawerLiveData;
    }
}
